package com.aacar.dao.impl;

import com.aacar.dao.OrderDemandDao;
import com.aacar.dao.base.CommonBaseDao;
import com.aacar.entity.OrderDemand;
import org.springframework.stereotype.Repository;

@Repository("orderDemandDao")
public class OrderDemandDaoImpl extends CommonBaseDao<OrderDemand, String> implements OrderDemandDao {

	private static final String nameSpace = "com.aacar.dao.OrderDemandDao.";


	@Override
	public int save(OrderDemand orderDemand) {
		return saveObject(nameSpace.concat("save"), orderDemand);
	}

	@Override
	public int update(OrderDemand orderDemand) {
		return super.getSqlSession().update(nameSpace.concat("update"), orderDemand);
	}
}
